{/include file="simpla/common/header.html"/}
{/include file="simpla/common/left.html"/}
<div id="main-content">
    <h2>欢迎您 {/$_adminname/}</h2>
    <p id="page-intro">查看和管理所有分类。</p>
    <div class="clear"></div>
    <div class="content-box">
      <div class="content-box-header">
        <h3>分类管理</h3>
        <ul class="content-box-tabs">
            <li><a href="#tab1" class="default-tab">分类管理</a></li>
            <li><a href="{/get_url rule="/category/category"/}">添加分类</a></li>
        </ul>
        <div class="clear"></div>
      </div>
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
          <table>
            <thead>
              <tr>
				<th>分类名称</th>
				<th>管理</th>
              </tr>
            </thead>
            <tfoot>
              <tr>
                <td colspan="6">{/$pagebar/}</td>
              </tr>
            </tfoot>
            <tbody>
            {/section name=i loop=$category/}
            <tr>
              <td>{/$category[i].pre/}{/$category[i].cat_name/}</td>
              <td><a href="{/get_url rule='/category/category' data='catid='|cat:$category[i].cat_id/}" title="编辑"><img src="{/$root_dir/}/assets/simpla/images/icons/pencil.png" alt="编辑" /></a></td>
            </tr>
            {//section/}
            </tbody>
          </table>
        </div>
      </div>
    </div>
    {/include file="simpla/common/copy.html"/}
  </div>
{/include file="simpla/common/footer.html"/}